const peiqi = {}

peiqi.install = function(V){
	//全局定义指令:v-atguigu
	V.directive('atguigu',function(element,binding){
		element.innerText += binding.value
	})

	//给Vue的原型对象上追加$showRandom
	V.prototype.$showRandom = function (){
		const rNumber = Math.floor(1 + 9 * Math.random())
		alert(rNumber)
	}

	V.projectName = '市值一个亿的项目'
}